package org.iteracionIII.dom;

import org.iteracionIII.presen.IU_Trabajador_3;

public class Gestor_Registrar_Prestamo {
	public Prestamo unnamed_Prestamo_;

	public boolean registrarPrestamo(String u, String d, String i) throws Exception {
		boolean bool = false;
        
        Prestamo pres = new Prestamo(u,d,i);
        
        if (u == null || d == null || i == null) bool = false;
        else{
        	if ((pres.ComprobarExiste(u,d,i) != 0)){
        		bool = false;
        	}
        	else{
        		if (pres.create() == 1) bool = true;
        	}
        }
        return bool;
	}
}